<?php

namespace app\shop\validate;

class OrderEvaluateValidate extends BaseValidate
{
    protected $rule = [
        'score' => 'require|between:1,5',
    ];

    protected $message = [
        'score.require' => '评分不能为空',
        'score.between' => '评分必须在1-5之间',
    ];

    protected $scene = [
        'index' => [''],
        'add'   => ['score'],
    ];
}